package com.lotter.common.enumobject;

public enum WinpayEnum {
	
	WINPAY_IN(1, "转入"), WINPAY_OUT(2, "转出"),
	WINPAY_FREEZE(3, "冻结"), WINPAY_UNFREEZE(4, "解冻");
	
	private int code;

	
	private String desc;

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}


	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}

	private WinpayEnum(int code,  String desc) {
		this.code = code;
		this.desc = desc;
	}
	
	public static String getDesc(int i){
		for (WinpayEnum type : values()) {
			if(type.getCode()==i){
				return type.getDesc();
			}
		}
		return null;
	}

}
